Skip to content

Add tailwind config for Tailwind LSP support in templ files#413

Merged
Melkeydev merged 1 commit intoMelkeydev:mainfrom
BlueBlizzardd:main
Jul 10, 2025
Merged

Add tailwind config for Tailwind LSP support in templ files#413
Melkeydev merged 1 commit intoMelkeydev:mainfrom
BlueBlizzardd:main

Conversation

@BlueBlizzardd
Copy link
Contributor

Problem/Feature

When making a Tailwind template which uses HTMX by default, there isn't any config file that signals that the LSP should be active on templ files, which means that you have to manually add it. This change aims to fix that, though I'm not sure if this change is needed when making other templates using Tailwind too, if so, I'm willing to update this PR to change those as well.

Description of Changes:

  • added a new cmd/template/advanced/files/htmx/tailwind folder and a cmd/template/advanced/files/htmx/tailwind/tailwind.config.js.tmpl file
  • added the tailwind.config.js.tmpl file to cmd/templates/advanced/routes.go
  • added the file to program.go

Checklist

  • I have self-reviewed the changes being requested

Copy link
Owner

@Melkeydev Melkeydev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Melkeydev Melkeydev merged commit 1c07733 into Melkeydev:main Jul 10, 2025
195 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants